//
//  UIImage +Extension.swift
//  WeiBo2017
//
//  Created by 王璐 on 2017/4/12.
//  Copyright © 2017年 wl. All rights reserved.
//

import UIKit

extension UIImage{
    
    
    //创建一个点的图像
 class   func wl_singleDotImage(color:UIColor)->(UIImage){
        //
        UIGraphicsBeginImageContextWithOptions(CGSize(width:1,height:1), false, UIScreen.main.scale)
        color.setFill()
        UIRectFill(CGRect(x:0,y:0,width:1,height:1))
        let result = UIGraphicsGetImageFromCurrentImageContext()
        UIGraphicsEndImageContext()
        
         return result!
        
    }
    
}
